package com.wechat.entity.dto;

import com.wechat.entity.constants.Constants;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class LoginFormDTO {
    @NotEmpty
    private String checkCodeKey;//redis中的验证码key
    @NotEmpty
    @Email
    private String email;
    @NotEmpty
    @Pattern(regexp = Constants.REGEX_PASSWORD)
    private String password;

    @NotEmpty
    private String checkCode;//图片验证码
}
